package com.changpay.zywy.ui.activity.count

import com.changpay.zywy.R
import com.changpay.zywy.base.BaseActivity
import com.changpay.zywy.base.IView
import com.changpay.zywy.ext.showToast
import kotlinx.android.synthetic.main.activity_action_total_count.*
import kotlinx.android.synthetic.main.title_layout.*


class CountActionTotalActivity : BaseActivity(), IView, CountActionTotalView.CountChartActionClose {
    override fun loadActionCharData() {

    }

    override fun attachLayoutRes(): Int {
        return R.layout.activity_action_total_count
    }

    override fun showLoading() {

    }

    override fun hideLoading() {

    }

    override fun showDefaultMsg(msg: String) {
        showToast(msg)
    }

    override fun showMsg(msg: String) {
        showToast(msg)
    }

    override fun showError(errorMsg: String) {
        showToast(errorMsg)
    }


    override fun initData() {
    }

    override fun initView() {
        tv_title.text = "激活率"
        iv_back.setOnClickListener { finish() }
        count_chart_action_total.setListener(this)
    }

    override fun start() {


//        val param = hashMapOf<String, String>()
//        param["key"] = token
//        RetrofitHelper.service.get_total_activation(param).sss(this)
//        {
//            val stock_num = it.result.activation_total.stock_num
//            val activation_num = it.result.activation_total.activation_num
//            val un_activation_num = it.result.activation_total.un_activation_num
//            val h9 = it.result.activation.h9
//            val mp70 = it.result.activation.mp70
//            count_chart_action_total.setData(stock_num, activation_num, un_activation_num, h9, mp70, 0, 0, 0)
//        }
    }
}
